package com.parrots.sample.service.impl;

import java.util.List;

import com.parrots.sample.dao.MenuDao;
import com.parrots.sample.entity.Resource;
import com.parrots.sample.service.MenuManager;

/**
 * Implementation of MenuManager interface.
 */
public class MenuManagerImpl extends UniversalManagerImpl implements MenuManager {
    private MenuDao dao;

    public void setMenuDao(MenuDao dao) {
        this.dao = dao;
    }

    /**
     * {@inheritDoc}
     */
    public List<Resource> getMenus(Resource resource) {
        return dao.getMenus();
    }

}